package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.common.core.page.PageDomain;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.DeviceDataListDto;
import com.zzyl.nursing.vo.DeviceDataListVo;
import com.zzyl.nursing.vo.ElderBedDeviceVo;
import com.zzyl.nursing.vo.FamilyMemberElderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 老人家属Mapper接口
 * 
 * @author mr.wu
 * @date 2025-05-23
 */
@Mapper
public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder>
{
    /**
     * 添加家属老人
     * @param familyMemberElder
     */
    void familyElderadd(FamilyMemberElder familyMemberElder);

    List<FamilyMemberElderVo> familyElderMy();

    /**
     *  家属老人分页
     * @param pageDomain
     * @return
     */
    List<ElderBedDeviceVo> familyElderpage( @Param("page") PageDomain pageDomain,
                                            @Param("familyMemberId") Long familyMemberId);

    List<DeviceDataListVo> queryDeviceDataListByDay(DeviceDataListDto dto);

    List<DeviceDataListVo> queryDeviceDataListByWeek(DeviceDataListDto dto);
}
